package com.jy.wms.common.generator;

import java.sql.PreparedStatement;
import java.util.Properties;

/**
 * @ClassName: GeneratorJava
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @Author zzp
 * @Date 2017/8/23 22:18
 */
public class GeneratorJava {
    private String authorName = "zzp";//作者名字
    private static String tablename = "jy_user";//表名
    private static String javaMapper = "UserMapper";//表名  在外边配置一下
    private static String javaFileName="User";
    private static String getJavaMapper="";
    MysqlConnection mc=new MysqlConnection();
    PreparedStatement ps=null;
    public GeneratorJava(){
        Properties prop=mc.getProperties("");
        tablename=prop.getProperty("tablename");
        javaFileName=prop.getProperty("javaFileName");
        javaMapper=prop.getProperty("javaMapper");
        String sql = "show full fields from "+ tablename;
        ps=mc.getMysqlConnection(sql);
    }
}
